package com.ruoyi.accountant.dao;

import com.ruoyi.accountant.domain.Account;
import com.ruoyi.accountant.domain.TransactionDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface TransactionDetailDao extends TempDao<TransactionDetail, Long> {
    @Query("from TransactionDetail where deletedDate >= adddate(deletedDate, ?1)")
    List<TransactionDetail> findOverDeletedDays(int saveDeletedTransactionDetailDay);
}
